home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950329-19950528 / 000038_news@columbia.edu_Tue Apr 4 05:36:36 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA10378
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 4 Apr 1995 01:36:49 -0400
  3. Received: by apakabar.cc.columbia.edu id AA23814
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 4 Apr 1995 01:36:46 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!jaltman
  6. From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: starting SLIP from Ckermit (OS/2 beta)
  9. Date: 4 Apr 1995 05:36:36 GMT
  10. Organization: Columbia University
  11. Lines: 125
  12. Message-Id: <3lqlt5$n7v@apakabar.cc.columbia.edu>
  13. References: <3liark$asl@sunny.bahnhof.se> <3lk18b$dih@mozo.cc.purdue.edu>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. Kyler Laird <laird@nettle.ecn.purdue.edu> wrote:
  18.  
  19. I hope you don't mind my hacking, but I thought I could add one or two ideas.
  20.  
  21. >; PUCC_SLIP.KRM
  22. >; Use this script to SL/IP into PUCC from OS/2 Warp
  23. >;    using C-Kermit 5A(191)
  24. >
  25. >;--------------------
  26. >;variable definitions
  27. >;--------------------
  28. >
  29. >;serial port number
  30. >def \%o 1
  31. >
  32. >;machine name
  33. >;def \%m coastal.ecn.purdue.edu
  34. >def \%m nettle.ecn.purdue.edu
  35. >
  36. >;machine address (use "tia -address" to find out)
  37. >;def \%a 128.46.161.160
  38. >def \%a 128.46.161.85
  39. >
  40. >;login
  41. >def \%l laird
  42. >
  43. >;password
  44. >def \%p secret
  45. >
  46. >;shell prompt
  47. >def \%r %
  48. >
  49. >;---------------------------------
  50. >
  51. >;set to bogus line so that SLIP.EXE can start
  52. >set line com0
  53.  
  54. You could also say SET NETWORK TCP/IP or anything else that changes the port
  55. from the one that SLIP.EXE is defined to use.
  56.  
  57. >
  58. >;start SLIP.EXE
  59. >!start "SL/IP into PUCC" /n /min slip -com\%o -ifconfig 192.0.2.1 \%a +defaultroute -p2 -rtscts
  60. >
  61.  
  62. I'm not sure that the -comN variable is needed if you have a properly 
  63. configured SLIP.CFG file.
  64.  
  65. >;wait for SL/IP connection to initialize
  66. >!slipwait
  67. >
  68. >set line slipcom\%o
  69.  
  70. This could have been done without SLIPWAIT by using the following C-Kermit 
  71. code:
  72.  
  73. :waiting
  74. set port slipcom\%o
  75. xif failure { pause 1, goto waiting }
  76.  
  77. >set speed 57600
  78. >
  79. >;call PUCC
  80.  
  81. I would replace this whole dialing section with a Services Directory 
  82. entry.
  83. >
  84. >;release shared serial port by setting to bogus port
  85. >set line com0
  86.  
  87. I like to use the same port just so I know that the SLIP Driver was released.
  88.  
  89. set port com\%o
  90.  
  91. This will fail after the SLIP Driver is released.
  92.  
  93. If you didn't know the address at dial in time, but instead were told it
  94. during the login statement, you would need to parse the incoming data for
  95. the IP address and then make appropriate calls to ifconfig.exe and possibly
  96. update the RESOLVE file at this point.
  97.  
  98. >
  99. >;*Note that you could just put "quit" here.
  100. >; The SL/IP stuff is all going on in another session.
  101. >; The following is just because I usually want to run
  102. >;    telnet.
  103. >
  104. >; You could also add lines like
  105. >;!start EXPLORE.EXE
  106. >;     so that TCP/IP applications (like Web Explorer) will
  107. >;     automatically start after connection.
  108. >
  109. Good points.
  110.  
  111. >;connect to machine via TCP/IP (telnet)
  112. >net tcp/ip \%m
  113. >
  114. >;login to machine (again)
  115. >unixlogin \%l \%p \%r
  116. >
  117. Again, this is perfect for a Service Directory entry.
  118.  
  119. >;present terminal emulation screen
  120. >connect
  121. >
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138. Jeffrey Altman * PO Box 220415 * Great Neck, NY * 11022-0415 * (516) 466-5495
  139. "C-Kermit: available on more platforms than any other communications software."
  140. "Kermit FTP: sending files whenever and wherever they are needed."
  141.   OS/2 version 5A(190): ftp://kermit.columbia.edu/kermit/archives/cko190.zip